/**
 * @author xuyh0817
 * @email xuyh0817@foxmail.com
 * @date 2022-02-16 15:54
 * @version 2.0.0
 * @doc todo
 * @website todo
 * @remark  如果要分发源码，需在本文件顶部保留此文件头信息！！
 */
import {COMPONENT_TYPE} from '../../constants'

export default [
  {
    id: '1',
    type: COMPONENT_TYPE.INPUT,
    formItem: {
      prop: 'value',
      rules: [],
      label: '默认值',
      extra: 'value(v-model) 使用","分隔',
    },
    attrs: {
      value: '',
      maxLength: 100,
      type: 'text',
      allowClear: true,
      placeholder: '请输入默认值'
    }
  },
  {
    id: '2',
    type: COMPONENT_TYPE.SWITCH,
    formItem: {
      prop: 'disabled',
      rules: [],
      label: '禁用状态',
      extra: '是否禁用状态，默认为 false,整组失效',
    },
    attrs: {
      checked: false
    }
  },
  {
    id: '3',
    type: COMPONENT_TYPE.TEXTAREA,
    formItem: {
      prop: 'children',
      rules: [],
      label: '可选项',
      extra: '指定可选项,可用setFormItemAttrs方法进行动态设置',
    },
    attrs: {
      autoSize: {
        minRows: 6
      },
      value: '',
      maxLength: 1000,
      allowClear: true,
      placeholder: '请输入可选项'
    }
  },
  {
    id: '4',
    type: COMPONENT_TYPE.TEXTAREA,
    formItem: {
      prop: 'associations',
      rules: [],
      label: '关联赋值',
      extra: '指定可选项中的属性项,进行动态添加到表单数据中',
    },
    attrs: {
      autoSize: {
        minRows: 4
      },
      value: '',
      maxLength: 1000,
      allowClear: true,
      placeholder: '请输入关联赋值项'
    }
  }
]
